// 栏目的请求
import axios from "../utils/request";
//获取栏目列表
export const getCategoryAPI = () => {
    return axios({
        method: 'GET',
        url: '/category',
    })
}

//添加栏目
export const addCategoryAPI = (data) => {
    return axios({
        method: 'POST',
        url: '/category',
        data: data
    })
}